package com.appsolut.example.multipleProjects.finalApp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class FinalAppActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button buttonDynamicLayout = (Button) findViewById(R.id.buttonDynamicLayout);
        Button buttonXMLLayout = (Button) findViewById(R.id.buttonXMLLayout);
        
        
        buttonDynamicLayout.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(new Intent(FinalAppActivity.this,MyFinalDynamicLayoutActivity.class));
			}
		});
        
        buttonXMLLayout.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(new Intent(FinalAppActivity.this,MyFinalXMLLayoutActivity.class));
			}
		});
    }
}